-- card: 8933 from stack: in.0 -- bmap block id: 0 -- flags: 0000 -- background id: 3797 -- name: -- part contents for background part 1 ----- text ----- Date: Thu, 19 Nov 87 11:11:06 PST From: PUGH@NMFECC.ARPA Here is a script to install in your Home stack if you get tired of changing data in locked fields. Instead of the choose field tool, double click field, turn lock text off, click OK, choose browse tool, change text, choose field tool, double click field, turn lock text on, click OK, and choose browse tool, (which can get a mite tiresome), just use Option-Click on a field (without a script in it) to unlock it, and Command-Click to turn it back on. This passes a mouseUp through the unlocked field because you have the Commandkey down, which puts the text into the msg box and displays it. The script hides the msg box, so it flashes on the screen momentarily. This does not interfere with the normal operation of the Commandkey on locked text items. Hypercard could use andThen and orElse operators for it's boolean evaluations. That or if the if statement evaluation was shortcutted by default. This script uses a command-click on an unlocked field to lock it and an option-click on a locked field to unlock it. on mouseUp if the optionKey is down then get the name of the target if it contains "field" then if lockText of it then set the lockText of it to false end if else if the commandKey is down then get the name of the target if it contains "field" then if lockText of it is false then hide msg set the lockText of it to true end if end if else pass mouseUp exit mouseUp end if end mouseUp -- part contents for background part 45 ----- text ----- Locking and unlocking fields made easy